package grad.nxu.recruitsystem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName position
 */
@TableName(value = "position")
@Data
public class Position implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 岗位名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 岗位类型
     */
    @TableField(value = "category_id")
    private Integer categoryId;
    /**
     * 包括岗位职责，具备条件，工作时间，工作内容，福利待遇
     */
    @TableField(value = "description")
    private String description;
    /**
     * 岗位所在市
     */
    @TableField(value = "address")
    private String address;
    /**
     * 最低薪资
     */
    @TableField(value = "min_salary")
    private Integer minSalary;
    /**
     * 最高薪资
     */
    @TableField(value = "max_salary")
    private Integer maxSalary;
    /**
     * 工作经验，如1-3年
     */
    @TableField(value = "work_experience")
    private String workExperience;
    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private Integer companyId;
}